<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file = "/common/init.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript" src="/common/js/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	$("#search").click(function(){
				$("#sform").submit();
		});
		$("#j > a").click(function(){
			var s = $(this).text();
			var j = this.id;
	   	    var flag = false;
			var t;
			var b;
			var c;
			for(i=0; i<j.length; i++){
					if(j.charAt(i) == "-"){
						flag = true;
					}
			}
			if(flag == true){
				 t = j.split("-");
				 b = t[0];
				 c = t[1];
			}else{
				 t = j.split("∼");
				 b = t[0];
				 c = t[1];
			}
		  	$(opener.document).find("input[name=zip1]").val(b);
		   	$(opener.document).find("input[name=zip2]").val(c);
		   	$(opener.document).find("input[name=addr1]").val(s);
		   	self.close();
	});
});





</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<BODY leftMargin=0 topMargin=0  marginheight="0" marginwidth="0"> 
 
<table border=0 cellpadding="0" cellspacing="0" bordercolordark="black" bordercolorlight="black" width="450" bgcolor="#FFFFFF">

  <input type='hidden' name='page' value='member_regist_f'>
  <input type='hidden' name='type' value=''>
  <tr> 
    <td width="423"> 
      <table width="425" border="0" cellspacing="0" cellpadding="0" background="http://img0001.echosting.cafe24.com/front/type_b/image/common/bg_pop.gif">
        <tr> 
          <td height="45" width="12">&nbsp;</td>
          <td width="413"><img src="http://img0001.echosting.cafe24.com/front/type_b/image/member/pop_zipcode.gif"></td>
        </tr>
      </table>
    </td>
    <td width="25" background="http://img0001.echosting.cafe24.com/front/type_b/image/common/bg_pop.gif">&nbsp;</td>
  </tr>
  <tr> 
    <td height="5" bgcolor="#E7E7E7" width="423"></td>
    <td height="5" bgcolor="#E7E7E7" width="25"></td>
  </tr>
  <tr> 
    <td height="20" width="423"></td>
    <td height="20" width="25"></td>
  </tr>
  <tr> 
    <td align="center" width="423"> 
      <table cellpadding="0" cellspacing="0" width="400">
        <tr> 
          <td width="9" valign="top"><img src="http://img0001.echosting.cafe24.com/front/type_b/image/myshop/myshop_tab_05.gif" border="0"></td>
          <td width="4"></td>
          <td STYLE="color:#555555;font-size:12;font-family:굴림;">찾고자하는 지역의 동/읍/면/리/건물명을 입력하세요.<br>
            서울시 강남구 삼성동이라면 <span class="txt_coupon">삼성</span> 또는 <span class="txt_coupon">삼성동</span>이라고 
            입력하시면<br>
            됩니다.</td>
        </tr>
      </table>
    </td>
    <td align="center" width="25">&nbsp;</td>
  </tr>
  <tr> 
    <td align="center" width="423"> 
      <table border="1" cellpadding="4" cellspacing="0" width="400" bordercolor="gainsboro" bordercolordark="white" bordercolorlight="gainsboro">
        <tr> 
          <td> 
          <form id="sform"method="post" action="/ac/zipcode.tump">
          	<table cellpadding="0" cellspacing="0" width="100%" bgcolor="#F6F6F6">
              <tr> 
                <td width="42" height="49" align="center">&nbsp;</td>
                <td width="59" height="49" align="center" STYLE="color:#555555;font-size:12;font-family:굴림;">지역명</td>
                <td width="285" height="49" align="left"> 
                  <input type="text" name="search" size="24" class="input01">
                  &nbsp;<input id="search" align='absmiddle'type='image' src="http://img0001.echosting.cafe24.com/front/type_b/image/button/but_search01.gif" border="0"></td>
              </tr>
            </table>
            </form>
          </td>
        </tr>
      </table>
    </td>
    <td align="center" width="25">&nbsp;</td>
  </tr>
  <tr>
    <td align="center" width="423">&nbsp;</td>
    <td align="center" width="25">&nbsp;</td>
  </tr>
  <tr> 
    <td align="center" width="423"> 
      <table cellpadding="0" cellspacing="0" width="400">
        <tr> 
          <td STYLE="color:#555555;font-size:12;font-family:굴림;"> <img align='absmiddle' src="http://img0001.echosting.cafe24.com/front/type_b/image/common/bul_06.gif" hspace="2" > 
            검색 후 아래에서 해당주소를 클릭하시면 자동입력 됩니다. </td>
        </tr>
      </table>
    </td>
    <td align="center" width="25">&nbsp;</td>
  </tr>
  <tr> 
    <td align="center" colspan="2" height="5"></td>
  </tr>
  <tr> 
    <td align="center" width="423" height=159 valign='top'> 
      <table width="400" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td bgcolor="#DADADA"> 
            <table border="0" cellpadding="4" cellspacing="1" width="400" bordercolor="gainsboro" bordercolordark="white" bordercolorlight="gainsboro">
              <tr height="26" bgcolor="#F6F6F6"> 
                <td colspan=2 align="center" class="txt_pro" height="27 STYLE="color:#555555;font-size:12;font-family:굴림;"" width="70">우편번호</td>
                <td align="center" class="txt_pro">주소</td>
              </tr>
              
   				<% 
				l = (List<Map<String,Object>>)result.get("List"); 
	    	
   				if(l !=null){
   			       for(Map<String,Object> vo : l){
   				%>
              	
	            <tr  bgcolor="#FFFFFF">
	            <td align="center" colspan=2 STYLE="color:#555555;font-size:9;font-family:굴림;"><%=vo.get("bunji") %></td>
	            <td id="j"  align="center"  colspan=2 STYLE="color:#555555;font-size:9;font-family:굴림;"><a id="<%=vo.get("bunji") %>"><%=vo.get("gugun") %> <%=vo.get("dong") %> <%=vo.get("ri") %></a> </td>
				</tr>
				<%} 
             		 }%>     
           
          
            </table>
          </td>
        </tr>
      </table>
    </td>
    <td align="center" width="25">&nbsp;</td>
  </tr>
  <tr> 
    <td height="10" align="right" colspan="2"></td>
  </tr>
  <tr> 
    <td height="20" align="right" width="423"><img src="http://img0001.echosting.cafe24.com/front/type_b/image/button/but_close02.gif" border="0" hspace="10" style="cursor:hand" onclick="javascript:self.close()"></td>
    <td height="20" align="right" width="25">&nbsp;</td>
  </tr>
  <tr> 
    <td height="20" colspan="2"></td>
  </tr>
  <tr> 
    <td height="20" bgcolor="#E7E7E7" width="423"></td>
    <td height="7" bgcolor="#E7E7E7" width="25"></td>
  </tr>

</table> 

</body>
</html>